package com.uco.sample;

public class ControlDead {
    public static void main(String[] args) {
        deadloop();
    }

    // 死循环
    public static void deadloop() {
        while (true) {
            System.out.println("死循环");
        }
    }

    // 死循环
    public static void deadloop1() {
        for (;;) {
            System.out.println("死循环");
        }
    }

    // 死循环
    public static void deadloop2() {
        do {
            System.out.println("死循环");
        } while (true);
    }
}

